//  1.html和body设置高度100%
//  2.头尾固定
//  3.内容高100% 设置 
// overflow: scroll;
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    padding: 45px 0 50px;
}

/* 头部 */

header {
    width: 100%;
    height: 45px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    padding: 5px 10px;
    font-size: 80px;
}

/* 尾部 */

footer {
    width: 100%;
    height: 45px;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    padding-top: 5px;
    background-color: #fff;
    a{
        flex: 1;
        width: 25%;
        padding: 0 10px;
        color: #666;
        text-align: center;
        span:nth-child(1){
            display: block;
            font-size: 1.2rem;
        }   
        span:nth-child(2){
            display: block;
            font-size: 1rem;
        }
    } 
}

/* 内容 */

.content {
    width: 100%;
    height: 100%;
    overflow: scroll;
    .pyg_nav {
        width: 100%;
        display: flex;
        a {
            flex: 1;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            img {
                width: 100%;
                height: 100%;
            }
        }
    }
    .goods {
        width: 100%;
        >img {
            width: 100%;
        }
        ul {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            padding: 5px;
            li {
                background-color: #fff;
                width: 50%;
                display: flex;
                flex-direction: column;
                padding: 5px;
                img {
                    width: 100%;
                }
                .name {
                    font-size: 18px;
                    color: #666;
                    overflow: hidden;
                    height: 150px;
                }
                .price {
                    display: inline-block;
                    font-size: 25px;
                    color: red;
                }
                .resemble {
                    font-size: 14px;
                    padding: 0 25px;
                    span {
                        border: 1px solid blue;
                        color: blue;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                }
            }
        }
    }
}